home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: brent_bysouth@mindlink.bc.ca (Brent Bysouth)
- Newsgroups: comp.lang.c++,comp.lang.pascal.delphi.misc
- Subject: Re: C++ with Zapp vs. Delphi
- Date: Fri, 19 Jan 1996 03:10:52 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4dn2qj$o7s@fountain.mindlink.net>
- References: <4coar6$d4n@sun4.bham.ac.uk> <4coip7$69s@news1.usa.pipeline.com> <fRA+w0JfFG5X089yn@oslonett.no> <4dcc4d$6anc@tigger.cc.uic.edu> <4ddke3$5lf@fountain.mindlink.net> <4dfivq$34fs@tigger.cc.uic.edu>
- NNTP-Posting-Host: line085.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- olczyk@sunphy1 (Thadeus Olczyk) wrote:
-
- >Brent Bysouth (brent_bysouth@mindlink.bc.ca) wrote:
- >: You don't seem to understand the significance of RTTI in Delphi. You
- >As far as I understand RTTI in Delphi, it is a slightly weaker version
- >of the C++ version. If so then it considered bad practice -- violating
- >the open/close principle. If not then Borland had better clean up their
- >documentation because I have never seen any mention of it.
-
-
- Well, you don't access the RTTI directly (if that's what you think I
- mean). You use accessor functions (like SetProp, GetProp, &
- MethodAddress -- there's a couple more as well). Also note that you
- can use the message directive (or MethodAddress) to name-lookup
- methods...
-
- ObjC and Smalltalk are definitely cleaner wrt their support for
- dynamic method resolution, but the facilities for it are there in
- Object Pascal. Borland has not directed attention to it that much
- with Delphi, but they have used it with event properties and use it
- for handling Windows messages -- no message map macros needed here,
- folks.
-
- BTW, Delphi 2.0 (out next month) apparently supports a
- dynamically-typed 'type'! It was primarily added to ease using OLE
- "objects" (ie. with Automation), but its addition will be welcome.
-
- Oh, and I was going to comment on your particular example of MI, but
- it seems like others have already expressed my views better than I
- could... ;-)
-
-
- --------------------------------------------------
- brent_bysouth@mindlink.bc.ca
- VB, Delphi & SQL Development
- Vancouver, BC.
- (604) 689-2616
- -------------------------------------------------
-
-